/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include "UI/Widget.h"
#include "UI/布局.h"


class C_时间轴 : public C_Widget {

public:
	C_时间轴(S_UI渲染环境& ctx);
	~C_时间轴();

	S_Surface2D* m_背景;
	uint32 m_刻度线;
	S_Surface2D* m_刻度数值;
	//uint32 m_时间线属性;
	S_Surface2D*	m_时间线;
	S_Surface2D* m_工具栏;

	S_时间线* m_时间线属性;

	//float32	m_时间区间缩放;
	float32	m_尺线绘制间隔;
	C_Widget*	m_工具条;
};



class C_轨道视口 : public C_Widget {
	
public:
	C_轨道视口(S_UI渲染环境& ctx);
	~C_轨道视口();

	uint32 m_背景;
	uint32 m_刻度线;
	uint32 m_刻度数值;

	uint32 m_采样条;
	uint32 m_波形;
	uint32 m_高亮;
	S_Surface2D* m_时间线;
	uint32 m_轨道标签;

	S_时间线* m_时间线属性;

	float32	m_轨道高度;
	float32	m_尺线绘制间隔;

	C_Widget* mui_轨道属性栏;
	C_Widget* mui_当前焦点项;
	int32		m_当前轨道ID;

	bool m_轨道属性编辑栏;
	bool m_轨道;
	E_移动方式 m_轨道移动方式;


	S_Props m_轨道数据;

};




class C_波形框 : public C_Widget {

public:
	C_波形框(S_UI渲染环境& ctx);
	~C_波形框();

	uint32 m_背景;
	uint32 m_刻度线;
	//uint32 m_高亮;
	//uint32 m_轨道标签;
	uint32 m_波形;


	bool m_滚动;
	bool m_堆叠绘制;

	std::vector<float32> m_波形数据;
	//S_Props m_波形数据;
	S_Waveform m_波形属性;
};





void f_ui_移动轨道时间线到中间(C_轨道视口& box);



